$list = Get-ChildItem .\WinFormsApp1\ -recurse *.cs|%{$_.FullName}
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False)
foreach ($i in $list){
    Write-Host $i
    $a = Get-Content $i
    [System.IO.File]::WriteAllLines($i, $a, $Utf8NoBomEncoding)
}
echo